<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/course.css"/>
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>

<block name="body">
    <!--左侧导航菜单-->
     <div class="col-xs-3">           
           <include file="Public/sidebar"  />
     </div>
     <!--/左侧导航菜单-->

     <div class="col-xs-9 content">
     <div class="row">        
         <include file="_tab"/>
           <div class="white-box"> 
             <!-- <legend>{$thistitle}</legend>   -->  
             <h3><i class="icon-user"></i>{$thistitle} {$now_nav}</h3>             
          <!--班级列表表单start-->                 
          <form class="form-horizontal form-condensed" role="form" method="post" id="classform" name="classform" action="">          
                 <div class="form-group">
                    <label class="col-md-2 control-label required">班 级：</label>
                      <div class="col-md-6">
                         <select name="bj_code" class="form-control"  style="width:210px;"  onChange="this.form.submit()">
                           <option value="{$cur.bj_code}" >{$cur.bj_code}</option> 
                             <volist name="classlist" id="v">
                                <option value="{$v.bj_code}"<if condition="$cur.bj_code eq $v['bj_code']">selected</if>  >{$v.bj_name}</option>            
                             </volist>                          
                        </select>
                      </div> 
                      <input class="btn btn-primary" value="提交"  type="submit" >
                    </div>
             </form>
              <!--班级列表表单end--> 

                    <form role="form" method="post" id="stform" name="stform">                    
                    <table class="table table-bordered">
                    <thead>
                    <tr>
                      <th>#ID</th><th>班级</th><th>学号</th><th>姓名</th><th>性别</th><th>Uid</th><th>更新日期</th><th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="list" id="v">
                    <tr>
                      <td>{$v.id}</td><td>{$v.bj_name}</td><td>{$v.st_code}</td><td>{$v.st_name}</td><td>{$v.sex}</td><td>{$v.uid}</td>
                      <td>{$v.update_time|date='Y-m-d',###}</td>
                      <td>
                         <a data-remote="{:U('Course/Teacher/studentEdit',array('id'=>$v['id']))} " data-toggle="modal" >编辑</a>｜
                          删除
                      </td>
                      </tr>
                      </volist>
                    </tbody>
                    </table>
         </form>
    </div>
</block>